package com.chitang.pool;

import io.netty.channel.Channel;
import io.netty.channel.group.ChannelGroup;
import io.netty.channel.group.DefaultChannelGroup;
import io.netty.util.concurrent.GlobalEventExecutor;

import java.util.concurrent.ConcurrentHashMap;

/**
 * @Author: wjs
 * @CreateTime: 2022-09-29 13:56
 */
public class ChannelHandlePool {
    public ChannelHandlePool() {

    }

    /**
     * 可以存放客户端ID和channel的对应数据
     */
    public static ConcurrentHashMap<String, Channel> channelMap = new ConcurrentHashMap<>();

    /**
     * channelGroup通道组
     */
    public static ChannelGroup channelGroup = new DefaultChannelGroup(GlobalEventExecutor.INSTANCE);
}
